package Observer;

/**
 * @Author:Cjj
 */
public class HexaObserver extends Observer{
    public HexaObserver(Subject subject)
    {
        this.subject=subject;
        this.subject.attach(this);
    }
    @Override
    public void update() {
        System.out.print("Hex String:"+Integer.toHexString(subject.getState()));
    }
}
